package com.haidechizi.backup.tree;

/**
 * @author: wangdejun
 * @create: 2020-03-14 13:37
 **/
public class TestArrayBinaryTree {

    public static void main(String[] args) {
        int[] data = new int[]{1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
        ArrayBinaryTree tree = new ArrayBinaryTree(data);

        tree.frontShow();

        System.out.println("==============");

        tree.midShow();

        System.out.println("==============");

        tree.afterShow();

        System.out.println("==============");
        tree.deepShow();

        int i = tree.frontSearch(10);

        System.out.println("======");
        System.out.println(i);
    }
}
